<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QuizAppMvc2.Models.AvaliacaoModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Prova</h2>
    <%--    <fieldset>
        <legend>Fields</legend>
        <div class="display-label">
            provaid</div>
        <div class="display-field">
            <%: Model.provaid %></div>
    </fieldset>--%>
    <% using (Html.BeginForm("Finish", "Setup", "Finish"))
       { %>
    <p>
        
        <% for (int i =0; i < Model.questoes.Count; i++ )
           { %>
        <h3>
        <%=  i %> )
        <%= Model.questoes[i].texto %><br>
        </h3>
        <%=  Html.HiddenFor(m => m.questoes[i].idquestao)%>
        <%=  Html.RadioButtonFor(m => m.questoes[i].resposta, 1)%>certo<br />
        <%=  Html.RadioButtonFor(m => m.questoes[i].resposta, 2)%>errado<br />
        <br />
        <br />
        
           <% } %>
        <input type="submit" value="Finish" />
        <% } %>
    </p>
</asp:Content>
